-- GENERATED SPELL FOR [Searing Ghoul] --


function spell0_1795(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(23039,pUnit)
pUnit:RegisterEvent('Sorts_1795', 8000, 1)
end

function spell1_1795(pUnit, Event) --@Flame Shock,n/a--
pUnit:FullCastSpellOnTarget(23038,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1795', 12000, 1)
end

function Sorts_1795(pUnit, Event)
local choix_sorts_1795 = math.random(0, 1)
if choix_sorts_1795 == 0 then
pUnit:RegisterEvent('spell0_1795', 1, 1)
end
if choix_sorts_1795 == 1 then
pUnit:RegisterEvent('spell1_1795', 1, 1)
end
end

function mob1795_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1795', math.random(1500, 3000), 1)
end

function mob1795_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1795_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1795_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1795, 1, 'mob1795_Action')
RegisterUnitEvent(1795, 2, 'mob1795_Leave')
RegisterUnitEvent(1795, 3, 'mob1795_Kill')
RegisterUnitEvent(1795, 4, 'mob1795_Die')
